package com.maimao.model.info.input;

import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 下单时修改用户的优惠券使用状态
 *
 * @author MaoLin Wang
 * @date 2021/1/18 10:31 下午
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UseCouponInput implements Serializable {

    private static final long serialVersionUID = 6651293735175638096L;
    private Long userId;
    private List<Long> couponIds;
    private Boolean used;
    private Long orderId;
    private LocalDateTime usedTime;

    @Override
    public String toString() {
        return "UseCouponInput{" +
                "userId=" + userId +
                ", couponIds=" + couponIds +
                ", used=" + used +
                ", orderId=" + orderId +
                ", usedTime=" + usedTime +
                '}';
    }
}
